#!/bin/bash

sudo pacman -S archlinuxcn-keyring
sudo pacman -Sy
cd ~ && mv arch-install arch
sudo pacman -S xorg xorg-xinit base-devel git
sudo pacman -S ttf-fira-code noto-fonts-emoji wqy-microhei
sudo pacman -S yay
# yay -S ttf-symbola nerd-fonts-fira-code

sudo pacman -S alacritty
echo "exec dwm" >> ~/.xinitrc
echo "export DWM='/home/lovectrl/arch/dwm'" >> ~/.profile
mv ~/arch/scripts ~/

cd ~/arch/dwm && sudo make clean install

cd ~ && git clone https://github.com/yaocccc/st.git && cd st && sudo make clean install

yay -S git
yay -S xorg
yay -S wqy-microhei
yay -S wps-office-mui-zh-cn
yay -S ttf-wps-fonts
yay -S nerd-fonts-jetbrains-mono
yay -S ttf-material-design-icons
yay -S ttf-joypixels
yay -S ttf-dejavu

sudo pacman -S fcitx5-im fcitx5-chinese-addons fcitx5-material-color

sudo pacman -S pipewire-pulse
sudo pacman -S acpi dunst
yay -S lxappearance              # gui设置
yay -S paper-gtk-theme-git       # gtk主题
yay -S pavucontrol               # 音频设置
yay -S breeze-icons              # 图标
yay -S rofi                      # 菜单
yay -S flameshot                 # 截图软件
yay -S byzanz                    # gif截图依赖
yay -S libnotify dunst           # 通知
yay -S xorg-xsetroot             # dwm设置状态栏
yay -S xf86-input-synaptics      # 触控板
yay -S network-manager-applet    # 网络托盘
yay -S feh
yay -S i3lock-color
yay -S pcmanfm

mkdir -p ~/Pictures/screenshots
# 安装picom
cd ~
git clone https://github.com/yaocccc/picom.git
cd picom
rm -rf build
# 需要安装一些库
sudo pacman -S meson cmake libev uthash libconfig
LDFLAGS="-L/usr/local/lib" CPPFLAGS="-I/usr/local/include" meson --buildtype=release . build
ninja -C build
sudo ninja -C build install
